package itbour.onetouchshow.constants.platform;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by onetouch on 2017/12/16.
 * <p>
 * 主要是区分用户操作   作品or者模板
 */

public class WorkPlatform {
    public static final int WOEK = 1;
    public static final int MODULE = 2;
    public static final String W0RK = "W0RK";
    public static final String MOUDLE = "MOUDLE";
    public static final String TYPE = "MOUDLE_KEY";

    //@PayPlatform.Platform int platform
    public static String getWorkPlatform(@WorkPlatform.Platform int platform) {
        if (platform == WOEK) {
            return W0RK;
        } else {
            return MOUDLE;
        }
    }

    @IntDef({WOEK, MODULE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Platform {
    }
}
